<?php
class User_Form_ResetPass extends Zend_Form
{
   public function init()
    {
       $this->setAction ( '' )
          ->setMethod ( 'post' );    
           
      // Create and configure current password element:
      $email = $this->createElement('text', 'email');
      $email->setLabel('Email:')
			->setRequired(true)
			->addFilter('StripTags')
			->addFilter('StringTrim')
			->addFilter('StringToLower')
			->setAttrib('size',50)
			->addValidator('EmailAddress')
			->setAttrib('class', 'input-text-login');
      
      $submit = $this->createElement('submit','login',array ('label' => 'Send' ));
      $submit->setDecorators(array( 'ViewHelper', array('HtmlTag', array('tag' => 'hb') ,array('Label', array('tag' => '')))));
      $submit->setAttrib('class', 'button');   
      $cancel = $this->createElement('button','back',array ('label' => 'Cancel'));
      $cancel->setDecorators(array( 'ViewHelper', array('HtmlTag', array('tag' => 'hb') ,array('Label', array('tag' => '')))));
      $cancel->setAttrib('class', 'button');   
      // Add elements to form:
      $this->addElement ( $email ) 
           ->addElement($submit)
           ->addElement($cancel);
    }
}